<?php 
if(KT!='KhiThe') exit;
class contacts_model extends khithe_mysql{

	public function setCheckedcontact($_POST)
	{
		$Fullname= parent::checkStrMySQL($_POST['Fullname']);
		$Address= parent::checkStrMySQL($_POST['Address']);
		$Telephone= parent::checkStrMySQL($_POST['Telephone']);
		$Email= parent::checkStrMySQL($_POST['Email']);
		$Title= parent::checkStrMySQL($_POST['Title']);
		$Content= parent::checkStrMySQL($_POST['Content']);
		
		$update = "INSERT INTO ".contacts."(Fullname,Address,Telephone,Email,Title,Content,PostDate,`Status`) 
									VALUES('".$Fullname."','".$Address."','".$Telephone."','".$Email."','".$Title."','".$Content."','".time()."','false')";
									
		return parent::UpdateInsertMySQL($update);
		
		
	}
}
?>